<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="javax.sql.*"%>
<%@ page import="org.osgi.framework.*"%>
<%@ page import="com.gzgi.framework.*"%>
<%@ page import="com.gzgi.framework.util.*"%>
<%@ page import="com.gzgi.framework.context.*"%>
<%@ page import="com.gzgi.framework.config.*"%>
<%@ page import="com.gzgi.workflow.service.*"%>
<%
        SessionContainer.getContainer().reloadSessionFactory();
        EntityService entityService = EntityContainer.getContainer().getEntityService();
		com.gzgi.apps.booking.Hotel hotel = new com.gzgi.apps.booking.Hotel();
		hotel.setName("广州白云宾馆");
		hotel.setAddress("广州越秀区环市东路367号");
		hotel.setCity("广州");
		hotel.setState("广州越秀区");
		hotel.setCountry("中国");
		hotel.setZip("510065");
		hotel.setPrice(new Double(588));
		entityService.save(hotel);
		String hsql = " select a from com.gzgi.apps.booking.Hotel as a where a.name like '%白云%' ";
		List list  = entityService.getList(hsql, null);
		out.println("rows:"+list);		
 %>